#include <cstdlib>

#include <iostream>
#include <sstream>

#include <boost/lexical_cast.hpp>

int main()
{
	std::string s = boost::lexical_cast<std::string>(100);
	std::cout << "==== 1 ====" << "    " << std::endl
		<< "s:" << s << "    " << std::endl;

	std::stringstream ss;
	ss << 100;
	ss >> s;
	std::cout << "==== 2 ====" << "    " << std::endl
		<< "s:" << s << "    " << std::endl;

	char buffer[100];
	std::sprintf(buffer, "%i", 100);
	std::string s1(buffer);
	std::cout << "==== 3 ====" << "    " << std::endl
		<< "s1:" << s1 << "    " << std::endl;
	return 0;
}